dofile(os.getenv('LUAR_HOME') .. '/util/File.lua')

function execute()
	local template_folder = arg[2]
	local file = File{}
	if not file:exists( template_folder ) then
		print( 'There is not a template folder with name "' .. template_folder .. '" on current directory' )
		return false
	end
	return assert( os.execute( 'tar -zcf ' .. template_folder .. '.tar.gz ' .. template_folder .. '/' ) ) ~= nil
end
